.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* 用户信息区域 */
.userSection {
  background-color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.userInfo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.userName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.userId {
  font-size: 14px;
  color: #666;
}

.switchButton {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 16px;
  cursor: pointer;
}

.switchIcon {
  font-size: 16px;
}

.switchText {
  font-size: 14px;
  color: #666;
}

/* 状态标签页 */
.tabSection {
  background-color: white;
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.tab {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab.activeTab {
  color: #1890ff;
  font-weight: 600;
}

.tab.activeTab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: #1890ff;
  border-radius: 2px;
}

/* 详情卡片 */
.detailCard {
  background-color: white;
  margin: 16px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
}

/* 医生信息区域 */
.doctorSection {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.doctorAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.doctorInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doctorName {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.doctorTitle {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.department {
  font-size: 14px;
  color: #666;
}

.hospital {
  font-size: 14px;
  color: #666;
}

/* 预约详情区域 */
.appointmentSection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detailRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.label {
  font-size: 15px;
  color: #666;
  font-weight: 500;
  min-width: 80px;
}

.value {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

/* 操作区域 */
.actionSection {
  padding: 20px 16px;
  display: flex;
  justify-content: center;
}

.retrieveButton {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.retrieveButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 144, 255, 0.5);
}

.retrieveButton:active {
  transform: translateY(0);
}

.retrieveButton.retrieving {
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
  box-shadow: 0 6px 20px rgba(82, 196, 26, 0.4);
  animation: pulse 1.5s infinite;
}

.retrieveButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* 加载内容样式 */
.loadingContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loadingSpinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 验证中弹窗样式 */
.verificationModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.modalContent {
  background-color: #2d2d2d;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.modalSpinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.modalText {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 验证中弹窗样式 */
.verificationModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.modalContent {
  background-color: #2d2d2d;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.modalSpinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.modalText {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 排队号区域 */
.queueSection {
  margin-top: 20px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.queueNumber {
  font-size: 18px;
  font-weight: 700;
  color: #1890ff;
  background-color: white;
  padding: 12px 24px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 已取号状态样式 */
.retrievedStatus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.successIcon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(82, 196, 26, 0.3);
  animation: successPulse 2s ease-in-out;
}

.successText {
  font-size: 16px;
  font-weight: 600;
  color: #52c41a;
}

@keyframes successPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 排队号区域 */
.queueSection {
  margin-top: 20px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.queueNumber {
  font-size: 18px;
  font-weight: 700;
  color: #1890ff;
  background-color: white;
  padding: 12px 24px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 排队号区域 */
.queueSection {
  margin-top: 20px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.queueNumber {
  font-size: 18px;
  font-weight: 700;
  color: #1890ff;
  background-color: white;
  padding: 12px 24px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 位置信息区域 */
.locationSection {
  padding: 16px;
  text-align: center;
  background-color: white;
  margin: 0 16px 16px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.locationText {
  font-size: 14px;
  color: #52c41a;
  font-weight: 500;
  margin-bottom: 8px;
}

.address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.locationIcon {
  font-size: 14px;
}

.addressText {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .detailCard {
    margin: 12px;
    padding: 16px;
  }
  
  .doctorAvatar {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .doctorName {
    font-size: 18px;
  }
  
  .retrieveButton {
    width: 100px;
    height: 100px;
    font-size: 16px;
  }
  
  .label {
    font-size: 14px;
    min-width: 70px;
  }
  
  .value {
    font-size: 14px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .container {
    background-color: #1f1f1f;
  }
  
  .detailCard {
    background-color: #2d2d2d;
    color: #fff;
  }
  
  .doctorName {
    color: #fff;
  }
  
  .value {
    color: #fff;
  }
  
  .locationSection {
    background-color: #2d2d2d;
  }
}